import request from '@/utils/request'

// 查询红娘服务申请列表
export function listApplication(query) {
  return request({
    url: '/application/application/list',
    method: 'get',
    params: query
  })
}

// 查询红娘服务申请详细
export function getApplication(applicationId) {
  return request({
    url: '/application/application/' + applicationId,
    method: 'get'
  })
}

// 新增红娘服务申请
export function addApplication(data) {
  return request({
    url: '/application/application',
    method: 'post',
    data: data
  })
}

// 修改红娘服务申请
export function updateApplication(data) {
  return request({
    url: '/application/application',
    method: 'put',
    data: data
  })
}

// 删除红娘服务申请
export function delApplication(applicationId) {
  return request({
    url: '/application/application/' + applicationId,
    method: 'delete'
  })
}



// 审核红娘服务申请
export function reviewApplication(data) {
  return request({
    url: '/application/application/review',
    method: 'put',
    data: data
  })
}

// 批量通过审核
export function batchApproveApplications(applicationIds) {
  return request({
    url: '/application/application/batchApprove/' + applicationIds,
    method: 'put'
  })
}

// 批量拒绝审核
export function batchRejectApplications(applicationIds) {
  return request({
    url: '/application/application/batchReject/' + applicationIds,
    method: 'put'
  })
}
